#ifndef PAINTERAREA_H
#define PAINTERAREA_H

#include <QWidget>
#include<QPen>
#include<QBrush>
#include<QPainter>
class painterarea : public QWidget
{
    Q_OBJECT
public:
    explicit painterarea(QWidget *parent = nullptr);
    enum shape{Line,Rectangle};

    void myShape(shape);
    void myPen(QPen);
    void myBrush(QBrush);
    void myfillRule(Qt::FillRule);

protected:
    void paintEvent(QPaintEvent *event);




signals:

private:
    shape shp;
    QPen pen;
    QBrush brush;
    QPainter *painter;
    Qt::FillRule fill1;


};

#endif // PAINTERAREA_H
